<template>
	<view class="collect">
		<view class="goodsList">
			<view class="item flex_space_b" v-for="(item, index) in goods_list" :key="index" @click="goDetails">
				<view class="imageBox">
					<u-image width="200rpx" height="200rpx" border-radius="12" src="https://cdn.uviewui.com/uview/example/fade.jpg"></u-image>
					<!-- <view class="mask">最高补贴:￥53.92</view> -->
				</view>
				<view class="info flex_space">
					<view class="title u-line-2">樱花女神洗脸巾一次性纯棉加厚女擦脸洁面巾无菌抽取式</view>
					<view class="data">
						<view class="flex">
							<view class="price">￥<text>100</text></view>
							<view class="original">￥200</view>
						</view>
						<view class="delete">
							<u-icon name="trash-fill" size="28" color="#666"></u-icon>
						</view>
					</view>
				</view>
			</view>
		</view>
		
		<view class="noContent">
		  <image class="noContentImage" mode="widthFix" src="/static/noLive.png"></image>
		  <view class="text">没有收藏</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				goods_list: [0, 1, 2, 3]
			}
		},
		methods: {
			goDetails () {
				uni.navigateTo({
					url: '/pages/index/goodsDetails'
				})
			}
		}
	}
</script>

<style scoped>
.collect {
	min-height: 100%;
	background-color: var(--bgColor);
}
.goodsList {
	padding: 20rpx 30rpx;
}
.goodsList .item {
	border-radius: 12rpx;
	overflow: hidden;
	background-color: #FFFFFF;
	margin-bottom: 20rpx;
}
.goodsList .item .imageBox {
	position: relative;
}
.goodsList .item .imageBox .mask {
	position: absolute;
	bottom: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	color: #FFFFFF;
	font-size: 24rpx;
	text-align: center;
}
.goodsList .item .info {
	flex: 1;
	height: 200rpx;
	padding: 20rpx;
	flex-direction: column;
}
.goodsList .item .info .title {
	color: #333333;
	font-size: 30rpx;
	font-weight: 600;
}
.goodsList .item .info .data {
	margin-top: 8rpx;
	position: relative;
}
.goodsList .item .info .data .flex {
	display: flex;
	align-items: flex-end;
}
.goodsList .item .info .data .flex .price {
	color: var(--primaryColor);
	font-size: 24rpx;
	margin-right: 20rpx;
	font-weight: 600;
}
.goodsList .item .info .data .flex .price text {
	font-size: 32rpx;
}
.goodsList .item .info .data .flex .original {
	color: #666;
	font-size: 24rpx;
	text-decoration: line-through;
}
.goodsList .item .info .data .delete {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 48rpx;
	height: 48rpx;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}
</style>
